<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>RADIUS Packet Types</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="radius.constants.options.html">« RADIUS Options</a></li>
      <li style="float: right;"><a href="radius.constants.attributes.html">RADIUS Attribute Types »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="radius.constants.html">预定义常量</a></li>
    <li>RADIUS Packet Types</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="radius.constants.packets" class="section">
  <h2 class="title">RADIUS Packet Types</h2>

  <p class="para">
   RADIUS packets, whether requests or responses, always include a type. These
   constants are provided to make it easier to specify types when using
   <span class="function"><a href="function.radius-create-request.html" class="function">radius_create_request()</a></span> and when comparing the result of
   <span class="function"><a href="function.radius-send-request.html" class="function">radius_send_request()</a></span>.
  </p>

  <dl>
   
    <dt id="constant.radius-access-request">
     <strong><code>RADIUS_ACCESS_REQUEST</code></strong> 
     (<span class="type">int</span>)
    </dt>

    <dd>

     <p class="para">
      An Access-Request, used to authenticate a user against a RADIUS server.
      Access request packets must include a
      <a href="radius.constants.attributes.html#constant.radius-nas-ip-address" class="link"><strong><code>RADIUS_NAS_IP_ADDRESS</code></strong></a>
      or a
      <a href="radius.constants.attributes.html#constant.radius-nas-identifier" class="link"><strong><code>RADIUS_NAS_IDENTIFIER</code></strong></a>
      attribute, must also include a
      <a href="radius.constants.attributes.html#constant.radius-user-password" class="link"><strong><code>RADIUS_USER_PASSWORD</code></strong></a>,
      <a href="radius.constants.attributes.html#constant.radius-chap-password" class="link"><strong><code>RADIUS_CHAP_PASSWORD</code></strong></a>
      or a
      <a href="radius.constants.attributes.html#constant.radius-state" class="link"><strong><code>RADIUS_STATE</code></strong></a>
      attribute, and should include a
      <a href="radius.constants.attributes.html#constant.radius-user-name" class="link"><strong><code>RADIUS_USER_NAME</code></strong></a>
      attribute.
     </p>
    </dd>

   
   
    <dt id="constant.radius-access-accept">
     <strong><code>RADIUS_ACCESS_ACCEPT</code></strong> 
     (<span class="type">int</span>)
    </dt>

    <dd>

     <p class="para">
      An Access-Accept response to an Access-Request indicating that the
      RADIUS server authenticated the user successfully.
     </p>
    </dd>

   
   
    <dt id="constant.radius-access-reject">
     <strong><code>RADIUS_ACCESS_REJECT</code></strong> 
     (<span class="type">int</span>)
    </dt>

    <dd>

     <p class="para">
      An Access-Reject response to an Access-Request indicating that the
      RADIUS server could not authenticate the user.
     </p>
    </dd>

   
   
    <dt id="constant.radius-access-challenge">
     <strong><code>RADIUS_ACCESS_CHALLENGE</code></strong> 
     (<span class="type">int</span>)
    </dt>

    <dd>

     <p class="para">
      An Access-Challenge response to an Access-Request indicating that the
      RADIUS server requires further information in another Access-Request
      before authenticating the user.
     </p>
    </dd>

   
   
    <dt id="constant.radius-accounting-request">
     <strong><code>RADIUS_ACCOUNTING_REQUEST</code></strong> 
     (<span class="type">int</span>)
    </dt>

    <dd>

     <p class="para">
      An Accounting-Request, used to convey accounting information for a
      service to the RADIUS server.
     </p>
    </dd>

   
   
    <dt id="constant.radius-accounting-response">
     <strong><code>RADIUS_ACCOUNTING_RESPONSE</code></strong> 
     (<span class="type">int</span>)
    </dt>

    <dd>

     <p class="para">
      An Accounting-Response response to an Accounting-Request.
     </p>
    </dd>

   
   
    <dt id="constant.radius-coa-request">
     <strong><code>RADIUS_COA_REQUEST</code></strong> 
     (<span class="type">int</span>)
    </dt>

    <dd>

     <p class="para">
      A CoA-Request, sent from the RADIUS server to indicate that the
      authorisations within the user session have changed. A response must be
      sent in the form of a CoA-ACK or a CoA-NAK.
     </p>
     <p class="para">
      This constant is available in PECL radius 1.3.0 and later.
     </p>
    </dd>

   
   
    <dt id="constant.radius-coa-ack">
     <strong><code>RADIUS_COA_ACK</code></strong> 
     (<span class="type">int</span>)
    </dt>

    <dd>

     <p class="para">
      A CoA-ACK, sent to the RADIUS server to indicate that the user
      authorisations have been updated.
     </p>
     <p class="para">
      This constant is available in PECL radius 1.3.0 and later.
     </p>
    </dd>

   
   
    <dt id="constant.radius-coa-nak">
     <strong><code>RADIUS_COA_NAK</code></strong> 
     (<span class="type">int</span>)
    </dt>

    <dd>

     <p class="para">
      A CoA-NAK, sent to the RADIUS server to indicate that the user
      authorisations could not be updated.
     </p>
     <p class="para">
      This constant is available in PECL radius 1.3.0 and later.
     </p>
    </dd>

   
   
    <dt id="constant.radius-disconnect-request">
     <strong><code>RADIUS_DISCONNECT_REQUEST</code></strong> 
     (<span class="type">int</span>)
    </dt>

    <dd>

     <p class="para">
      A Disconnect-Request, sent from the RADIUS server to indicate that the
      user session must be terminated.
     </p>
     <p class="para">
      This constant is available in PECL radius 1.3.0 and later.
     </p>
    </dd>

   
   
    <dt id="constant.radius-disconnect-ack">
     <strong><code>RADIUS_DISCONNECT_ACK</code></strong> 
     (<span class="type">int</span>)
    </dt>

    <dd>

     <p class="para">
      A Disconnect-ACK, sent to the RADIUS server to indicate that the user
      session has been terminated.
     </p>
     <p class="para">
      This constant is available in PECL radius 1.3.0 and later.
     </p>
    </dd>

   
   
    <dt id="constant.radius-disconnect-nak">
     <strong><code>RADIUS_DISCONNECT_NAK</code></strong> 
     (<span class="type">int</span>)
    </dt>

    <dd>

     <p class="para">
      A Disconnect-NAK, sent to the RADIUS server to indicate that the user
      session could not be terminated.
     </p>
     <p class="para">
      This constant is available in PECL radius 1.3.0 and later.
     </p>
    </dd>

   
  </dl>

 </div></div></div></body></html>